<style>
    label.red-start:before {
        content: '* ';
        color: red;
    }

</style>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="addFrm" class="layui-form" action="" lay-filter="component-form-group">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?= $type_id == 1 ? "收款" : "付款" ?>日期</label>
                    <div class="layui-input-inline">
                        <input type="text" name="pay_time" id="pay_time" value="<?= date("Y-m-d"); ?>" autocomplete="off" placeholder="" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?= $type_id == 1 ? "收款账户" : "付款账户" ?></label>
                    <div class="layui-input-inline">
                        <select name="pay_shouzhi_bank_id" lay-filter="pay_shouzhi_bank_id" lay-search>
                            <option value="">请选择</option>
                            <?php foreach ($shouzhiBank as $k => $v) { ?>
                                <option value="<?= $v["id"] ?>"><?= $v["title"] ?></option>
                            <?php } ?>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button type="button" class="layui-btn customize" lay-filter="formDemo" id="submitBtn">确定提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    var doAddUrl = "<?= $doAddUrl ?>";
</script>
<script src="<?= PUBLIC_URL . "/" . $this->projectSet["file"]["js"] . "/batchPay.js?" . rand() ?>"></script>
<script>
    layui.use(['laypage', 'layer', 'form', 'element', 'laydate'], function () {
        var laypage = layui.laypage,
                frm = layui.form,
                layer = layui.layer,
                element = layui.element,
                laydate = layui.laydate;

        laydate.render({
            elem: '#pay_time' //指定元素
                    //type: "datetime"
                    //range: true
        });

    });
</script>
